package com.lwt.hospital.service;

import com.lwt.hospital.model.Appointment;
import com.lwt.hospital.model.Question;
import com.lwt.hospital.model.User;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author 丁兆顺
 * @date 2020/5/18 15:08
 * @desciption
 */
public interface UserService {

    String userRegister(User user, HttpSession httpSession);

    boolean userIfLogin(HttpSession session);

    User getUserInfo(String account);

    Integer modifyUserInfo(User user,HttpSession session);

    List<Appointment> selectAppointment(HttpSession session);

    Integer addNewQuestion(Question question,HttpSession session);

    Integer addAppointment(Appointment appointment,HttpSession session);

    List<Appointment> getOldAppointment(HttpSession session);

    List<Question> getOldQuestion(HttpSession session);


    List<User> selectUsers();

    int delUser(long id);
}
